package com.sip.stream.utils.zfy.encoder;

import com.sip.stream.utils.zfy.consumer.IGSAudioEncoderConsumer;
import com.sip.stream.utils.zfy.consumer.IGSMediaObserver;
import com.sip.stream.utils.zfy.consumer.IGSWAVConsumer;

public interface IGSAudioEncoder extends IGSWAVConsumer, IGSMediaObserver<IGSAudioEncoderConsumer> {
    void addLisener(IGSAudioEncoderConsumer iGSAudioEncoderConsumer);
    void removeLisener(IGSAudioEncoderConsumer iGSAudioEncoderConsumer);
    void startEncode();
    @Override
    default void onStop(IGSAudioEncoderConsumer iGSAudioEncoderConsumer) {
        removeLisener(iGSAudioEncoderConsumer);
    }
}
